package com.aco.party.model.vo;

import com.aco.party.enums.EventStatusEnum;
import com.aco.party.model.po.Events;
import lombok.Data;

/**
 * Created by WangShijun on 2016/3/3.
 */
@Data
public class EventVo extends Events{
    private String statusStr;

    private Long views;

    public String getStatusStr() {
        if(super.getEventStatus() != null){
            return EventStatusEnum.getEventStatus(super.getEventStatus()).getDesc();
        }
        return EventStatusEnum.NULL.getDesc();
    }
}
